﻿using CnSharp.IO;
using CnSharp.Xml;

namespace CnSharp.SSMS.AddIn.Framework
{
    public class Settings<T> where T: class,new ()
    {
        public void Save(T t, string storedPath)
        {
            var xml = XmlSerializerHelper.GetXmlStringFromObject(t);
            FileIO.WriteText(storedPath, xml);
        }
    }
}
